<?php
/**
 * Class 需求圈.
 * User: chan
 * Date: 2017/10/20 11:22
 */

namespace app\api\controller;
class Circle extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'except' => 'except'
        ],
    ];

    /**
    *   需求圈
    */
    public function circleSelect(){
        $circleSelect =  (new \app\api\logic\Circle())->circleSelect();
        return $this->ajaxReturn($circleSelect);
    }


    /**
    *  圈详情
    */
    public function circleInfo(){
        $circleInfo =  (new \app\api\logic\Circle())->circleInfo();
        return $this->ajaxReturn($circleInfo);
    }

    /**
    * 圈评论添加
    */
    public function circleCommentAdd(){
        $circleCommentAdd =  (new \app\api\logic\Circle())->circleCommentAdd();
        return $this->ajaxReturn($circleCommentAdd);
    }

    /**
    * 圈评论删除
    */
    public function circleCommentDel(){
        $circleCommentDel =  (new \app\api\logic\Circle())->circleCommentDel();
        return $this->ajaxReturn($circleCommentDel);
    }

    /**
    *  圈点赞
    */
    public function circleLike(){
        $circleLike =  (new \app\api\logic\Circle())->circleLike();
        return $this->ajaxReturn($circleLike);
    }

    /**
    *  关注
    */
    public function attention(){
        $attention =  (new \app\api\logic\Circle())->attention();
        return $this->ajaxReturn($attention);
    }

    /**
     *  关注列表
     */
    public function attentionList(){
        $attentionList =  (new \app\api\logic\Circle())->attentionList();
        return $this->ajaxReturn($attentionList);
    }

    /**
    *  收藏
    */
    public function circleKeep(){
        $circleKeep =  (new \app\api\logic\Circle())->circleKeep();
        return $this->ajaxReturn($circleKeep);
    }

    /**
     *  收藏列表
     */
    public function circleKeepList(){
        $circleKeepList =  (new \app\api\logic\Circle())->circleKeepList();
        return $this->ajaxReturn($circleKeepList);
    }

    /**
    *   收藏商品
    */
    public function circleGoodsKeep(){
        $circleGoodsKeep =  (new \app\api\logic\Circle())->circleGoodsKeep();
        return $this->ajaxReturn($circleGoodsKeep);
    }

    /**
    *   商品收藏列表
    */
    public function goodsKeepList(){
        $goodsKeepList =  (new \app\api\logic\Circle())->goodsKeepList();
        return $this->ajaxReturn($goodsKeepList);
    }

    /**
     * 添加需求圈
     */
    public function addCircle()
    {
        $addCircle =  (new \app\api\logic\Circle())->addCircle();
        return $this->ajaxReturn($addCircle);
    }

    /**
    *  圈商品添加
    */
    public function addCircleGoods()
    {
        $addCircleGoods =  (new \app\api\logic\Circle())->addCircleGoods();
        return $this->ajaxReturn($addCircleGoods);
    }

    /**
    *   需求圈心情需求添加
    */
    public function addCircleMood(){
        $addCircleMood =  (new \app\api\logic\Circle())->addCircleMood();
        return $this->ajaxReturn($addCircleMood);
    }

    /**
    *   心情圈图片添加
    */
    public function addCircleMoodImg(){
        $addCircleMoodImg =  (new \app\api\logic\Circle())->addCircleMoodImg();
        return $this->ajaxReturn($addCircleMoodImg);
    }

    /**
    *   商品详情
    */
    public function circleGoodsInfo()
    {
        $circleGoodsInfo =  (new \app\api\logic\Circle())->circleGoodsInfo();
        return $this->ajaxReturn($circleGoodsInfo);
    }

    /**
    *   商品评论
    */
    public function goodsReview(){
        $goodsReview =  (new \app\api\logic\Circle())->goodsReview();
        return $this->ajaxReturn($goodsReview);
    }

    /**
    *   商品评论删除
    */
    public function goodsReviewDel(){
        $goodsReviewDel =  (new \app\api\logic\Circle())->goodsReviewDel();
        return $this->ajaxReturn($goodsReviewDel);
    }

    /**
     * 添加需求圈图片
     */
    public function addCircleimg()
    {
        $addCircleimg =  (new \app\api\logic\Circle())->addCircleimg();
        return $this->ajaxReturn($addCircleimg);
    }

    /**
     * 删除需求圈图片
     */
    public function delCircleimg()
    {
        $delCircleimg =  (new \app\api\logic\Circle())->delCircleimg();
        return $this->ajaxReturn($delCircleimg);
    }

    /**
     * 删除需求圈
     */
    public function deleteCircle()
    {
        $deleteCircle =  (new \app\api\logic\Circle())->deleteCircle();
        return $this->ajaxReturn($deleteCircle);
    }

    /*  圈商品图片上传
    */
    public function editGoodsImg(){
        $editGoodsImg =  (new \app\api\logic\Circle())->editGoodsImg();
        return $this->ajaxReturn($editGoodsImg);
    }

    /**
    *   商品图片删除
    */
    public function delGoodsImg(){
        $delGoodsImg =  (new \app\api\logic\Circle())->delGoodsImg();
        return $this->ajaxReturn($delGoodsImg);
    }
}